#include <strings.h>
#include <arpa/inet.h>
#include <pthread.h>
#include <google/protobuf/message.h>
#include <sys/sysinfo.h>
#include "multi.pb.h"

class udp_multicast{
public:
	udp_multicast(std::string const& multicastip, int port,  std::string const& interface);

	void send(server::Block const& block) ;
	~udp_multicast();
private:
	pthread_mutex_t m_lock;

   int sock, status, socklen;
   struct sockaddr_in saddr;
   struct in_addr iaddr;

};

